//
//  MyQRCodeViewController.m
//  reSearchDemo
//
//  Created by helfy  on 15-4-16.
//  Copyright (c) 2015年 Kiwaro. All rights reserved.
//

#import "MyQRCodeViewController.h"
#import "QRCodeGenerator.h"
#import "UIImageView+WebCache.h"
@interface MyQRCodeViewController ()
{

    UIImageView *codeImageView;
}
@end

@implementation MyQRCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"我的二维码";
    codeImageView = [[UIImageView alloc] init];
    [self.view addSubview:codeImageView];
    CGFloat width = self.view.width-40;
    
    codeImageView.image = [QRCodeGenerator qrImageForString:[KUserPer stringByAppendingString: [[BSEngine currentEngine] user].uid ] imageSize:width];
    [codeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.height.equalTo(width);
        make.center.equalTo(self.view);
    }];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
